home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga Tools 3
/
Amiga Tools 3.iso
/
grafik
/
raytracing
/
rayshade-4.0.6.3
/
rayfiles
/
rsdefs
/
textures
/
stdtxtr.rh
< prev
Wrap
Text File
|
1994-08-09
|
3KB
|
75 lines
/************************************************************************
*
* Texture.rh
*
* This an #include file for the Rayshade Standard Header
* Files. It defines the textures in the package.
*
* Please do not edit this file, or any of the other files in
* this package! Make additions to these in your own separate
* file. If you think you have something that should be added
* permanently, please send it to Larry Coffin and/or David
* DeBry (email addresses listed below). If we include it in
* the next release, we'll put your name in the contributor's
* list.
*
* Contributors (in alphabetical order):
* Larry Coffin <lcoffin@clciris.chem.umr.edu>
* David DeBry <ddebry@dsd.es.com>
* Stuart Warmink <sw@groucho.att.com>
*/
#ifndef RSHF_TEXTURE
#define RSHF_TEXTURE
/************************************************************************
As of now, we don't have any texture standard defined. A lot
texturing is done by images -- those you'll have to FTP from some site
that carries pictures for use as textures. (I'd suggest starting your
search at ftp.ncsa.uiuc.edu in the pub/textures area.)
However, rayshade allows for texture conglomeration. Larry
Coffin suggests that we make up some standard ones like this:
#define RSTcement texture bump .23 \
texture bump 1 scale .3 .5 .2 \
texture blotch .2 RSSgray() \
texture blotch 0 RSSblack() \
scale .1 .1 .1
Since a lot of textures depend on the base surface we could
even have something like:
#define RSTnamed_cement(surf) object RSSgray_med() surf \
texture bump.23 \
texture bump 1 scale .3 .5 .2 \
...
We could even include parameters for changing the textures
attributes like surface combinations or transformations (rotations,
scalings, etc.) as long as the parameters don't make the overall
useage more complex.
In any case, we're open to suggestions. Thanks.
************************************************************************/
/* here are some trial textures implemented as suggested above */
#define RSTnamed_marb_check1(obj,sc) object RSStest_white() obj \
texture marble \
RSMscale((sc/3.0)) \
texture checker RSStest_burgundy() \
RSMscale(sc)
#define RSTlightgray_marb(sx,sy,sz) \
texture marble RSDEFS/Textures/soap.map \
scale (sx) (sy) (sz)
#endif /* ifndef RSHF_SURFS */